// 云对象教程: https://uniapp.dcloud.net.cn/uniCloud/cloud-obj
// jsdoc语法提示教程：https://ask.dcloud.net.cn/docs/#//ask.dcloud.net.cn/article/129
const db = uniCloud.databaseForJQL();

module.exports = {
	_before: function() { // 通用预处理器

	},


	async getList(phone) {
		const list = await db.collection('invite-interview').where({
			mobile: phone
		}).orderBy('create_time desc').get()
		return list
	},

	async add(data) {
		const instance = await db.collection('invite-interview').add(data)
		return instance
	}
}